package cn.rengy.web.framework.wxmp.wxmenu;

import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.rengy.lang.ResultEntity;


/**
 * 
 * 
 */
@Controller
@RequestMapping(value = "/authenticated/wxmenu")
public class WxMenuController {
	private static Logger logger = LoggerFactory.getLogger(WxMenuController.class);
	@Autowired
	private WxMenuService wxMenuService;
	
	/**
	 * 默认菜单生效
	 * @param paramMap
	 * @return
	 * @throws Exception 
	 */
	@RequestMapping(value="takeEffectDefault",method = RequestMethod.POST)
	@ResponseBody
	public ResultEntity<?> takeEffectDefault (@RequestBody Map<String,Object> paramMap) throws Exception{
		wxMenuService.takeEffectDefault(paramMap);
		return ResultEntity.ok();
	}
	
}
